package de.h_da.fbi.cg.pointcloud.run;

import java.io.IOException;

import org.anddev.progressmonitor.ProgressMonitor;

import com.jme3.math.Vector3f;

import de.h_da.fbi.cg.pointcloud.adt.VertexList;
import de.h_da.fbi.cg.pointcloud.parser.asc.ASCParser;
import de.h_da.fbi.cg.pointcloud.ui.dialog.ProgressDialog;

/**
 * @author Nicolas Gramlich
 * @since 15:49:47 - 11.11.2010
 */
public class Tooth extends BaseApplication {
	// ===========================================================
	// Constants
	// ===========================================================

	// ===========================================================
	// Fields
	// ===========================================================

	// ===========================================================
	// Constructors
	// ===========================================================

	public static void main(final String[] args) {
		final Tooth app = new Tooth();
		app.start();
	}

	// ===========================================================
	// Getter & Setter
	// ===========================================================

	// ===========================================================
	// Methods for/from SuperClass/Interfaces
	// ===========================================================

	protected Vector3f getStepTranslation() {
		return new Vector3f(0.75f, 0, 0);
	}

	@Override
	protected VertexList getVertexList(final ProgressDialog progressDialog, final ProgressMonitor mainProgressMonitor) throws IOException {
//		final VertexList vertexList = ASCParser.parseAscii(BaseApplication.class.getClassLoader().getResource("Multiscan.asc").openStream(), new ProgressMonitor(mainProgressMonitor));
//		vertexList.transform(new Vector3f(-5, -25, 15), 0.025f, null);

//		final VertexList vertexList = ASCParser.parseAscii(BaseApplication.class.getClassLoader().getResource("Quetschbiss.asc").openStream(), new ProgressMonitor(mainProgressMonitor));
//		vertexList.transform(new Vector3f(10, -15, 5), 0.025f, null);

		final VertexList vertexList = ASCParser.parseAscii(BaseApplication.class.getClassLoader().getResource("Zahn-Rohscan.asc").openStream(), new ProgressMonitor(mainProgressMonitor));
		vertexList.transform(new Vector3f(10, 20, 15), 0.025f, null);
		
		return vertexList;
	}

	// ===========================================================
	// Methods
	// ===========================================================

	// ===========================================================
	// Inner and Anonymous Classes
	// ===========================================================
}
